<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.css" rel="stylesheet" />
		<script src="../js/mui.js"></script>
		<script type="text/javascript">
			mui.init()
		</script>
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">更多</h1>
		</header>
		<div class="mui-content">
			<ul class="mui-table-view item_tt" style="margin-top: 0;">
			    <!-- <li class="mui-table-view-cell ">
			        <a class="mui-navigate-right" style="position: relative; padding-bottom: 30px;" href="html/ref.html">
						<span><strong>党建学习参阅</strong></span>
						<p style="position: absolute; bottom: 0;">2021</p>
					</a>
			    </li> -->
			</ul>
		</div>
	</body>
	<script>
		// 党建参阅 渲染
		mui.ajax('http://192.168.0.111:3000/refers/re', {
			dataType: 'json', //服务器返回json格式数据
			type: 'get', //HTTP请求类型	              
			success: function(res) {
				let data = res.data
				data.forEach(item => {
					let module = `
						<li class="mui-table-view-cell s_btn" style="height:80px; position: relative">
						    <a class="mui-navigate-right" style="padding-bottom: 30px;" href="./ref.html?id=${item.id}">
								<span><strong>${item.title}</strong></span>
								<p style="position: absolute; bottom: -5px;">${item.time}</p>
							</a>
						</li>
						`
					$('.item_tt').append(module)
				})
			},
			error: function(xhr, type, errorThrown) {
				//异常处理；
				console.log(type);
			}
		});
		
	</script>
</html>